<!DOCTYPE html>
<html lang="Zh-cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width:device-width,initial-scale=1">
	<title>普通用户</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
	<link rel="icon" href="favicon.ico" >
</head>
<body>
	<nav class="navbar navbar-default">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#a" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
				<a  class="navbar-brand" href="index.html">
				liuboy
				</a>
			</div>
			<div id="a" class="collapse navbar-collapse">
			<ul class="nav navbar-nav" >
			<li><a href="wenzhang.html">文章</a></li>
			<li><a href="fenxiang.html">分享</a></li>
			<li><a href="liuyan.html">留言</a></li>
			</ul>
			<!-- <a href="" class="navbar-right navbar-link navbar-text">用户信息</a> -->
		</div>
		</div>
	</nav>
	<div class="panel panel-default">
		<div class="panel-heading">
		个人信息	
		</div>
		<div class="panel-body">
	 	<ul>
	 		ID:<li class="id"></li>
	 		用户名：<li class="username"></li>
	 		性别：<li class="sex"></li>
	 		密码：<li class="password"></li>
	 		邮箱：<li class="email"></li>
	 		<a href='zhuxiao.php'>注销</a>
	 	</ul>
	 </div>
	 </div>
</body>
<script
  src="https://code.jquery.com/jquery-3.5.1.js"
  integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc="
  crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script type="text/javascript">
	$.get("userid.php",function(id){
		var userData = JSON.parse(id);
		console.log(userData);
		// $(".loginUser").replaceWith("<a href='login.html' class='navbar-right navbar-link navbar-text loginUser'>欢迎您，"+userData[0].username+"</a>");
		$(".id").html(userData[0].id)
		$(".username").html(userData[0].username)
		$(".sex").html(userData[0].sex)
		$(".password").html(userData[0].password)
		$(".email").html(userData[0].email)
	
	});
</script>
</html>